/*
 * @Author: your name
 * @Date: 2020-05-11 10:18:19
 * @LastEditTime: 2020-06-05 18:23:00
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \v-nw-h5\src\store\modules\api\userOperation\share\actions.js
 */
import Vue from 'vue';
export default {
    getByLinkIdApi ({ commit }, params) {
        let url = `${Vue.prototype.NW_API_API_LOCALE_VERSION}/link/node/info/byLinkId`;
        return new Promise((resolve, reject) => {
            Vue.prototype.xurl.postSync(url, params).then((data) => {
                resolve(data)
            })
        })
    },
    getByNodeIdApi ({ commit }, params) {
        let url = `${Vue.prototype.NW_API_API_LOCALE_VERSION}/link/node/info/byNodeId`;
        return new Promise((resolve, reject) => {
            Vue.prototype.xurl.postSync(url, params).then((data) => {
                resolve(data)
            })
        })
    },

}